package com.zsw.dubbo;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;

import com.zsw.dubbo.console.SysConsole;



/**
 * Hello world!
 *使用spring-test 可以继承AbstractJUnit4SpringContextTests类
 *或者 @RunWith(SpringJUnit4ClassRunner.class)
 *
 */
@ContextConfiguration("classpath:dubbo-provider.xml")
public class Provider extends AbstractJUnit4SpringContextTests{
	
	public static void main( String[] args ){
    	ClassPathXmlApplicationContext ss = new ClassPathXmlApplicationContext("dubbo-provider.xml");
    	new SysConsole(ss);
    	System.out.println("service started.");
//    	ss.close();
//    	ss.destroy();
//    	ss.stop();
    }
	@Test
	public void testName() throws Exception {
		new SysConsole(applicationContext);
		System.out.println(2);
	}
}
